package com.ziyear.domain;

/**
 * 功能描述 : 座位实体
 *
 * @author Ziyear
 */
public class TrainSeat {
    private Integer seatId;
    private Integer trainId;
    private Integer carsNumber;
    private String seatType;
    private String seatCode;
    private String seatNumber;
    private String seatUse;

    public Integer getSeatId() {
        return seatId;
    }

    public void setSeatId(Integer seatId) {
        this.seatId = seatId;
    }

    public Integer getTrainId() {
        return trainId;
    }

    public void setTrainId(Integer trainId) {
        this.trainId = trainId;
    }

    public Integer getCarsNumber() {
        return carsNumber;
    }

    public void setCarsNumber(Integer carsNumber) {
        this.carsNumber = carsNumber;
    }

    public String getSeatType() {
        return seatType;
    }

    public void setSeatType(String seatType) {
        this.seatType = seatType;
    }

    public String getSeatCode() {
        return seatCode;
    }

    public void setSeatCode(String seatCode) {
        this.seatCode = seatCode;
    }

    public String getSeatNumber() {
        return seatNumber;
    }

    public void setSeatNumber(String seatNumber) {
        this.seatNumber = seatNumber;
    }

    public String getSeatUse() {
        return seatUse;
    }

    public void setSeatUse(String seatUse) {
        this.seatUse = seatUse;
    }

    public TrainSeat() {
    }

    public TrainSeat(Integer seatId, Integer trainId, Integer carsNumber, String seatType, String seatCode, String seatNumber, String seatUse) {
        this.seatId = seatId;
        this.trainId = trainId;
        this.carsNumber = carsNumber;
        this.seatType = seatType;
        this.seatCode = seatCode;
        this.seatNumber = seatNumber;
        this.seatUse = seatUse;
    }

    public TrainSeat(Integer trainId, Integer carsNumber, String seatType, String seatCode, String seatNumber, String seatUse) {
        this.trainId = trainId;
        this.carsNumber = carsNumber;
        this.seatType = seatType;
        this.seatCode = seatCode;
        this.seatNumber = seatNumber;
        this.seatUse = seatUse;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("TrainSeat{");
        sb.append("seatId=").append(seatId);
        sb.append(", trainId=").append(trainId);
        sb.append(", carsNumber=").append(carsNumber);
        sb.append(", seatType=").append(seatType);
        sb.append(", seatNumber='").append(seatNumber).append('\'');
        sb.append(", seatUse='").append(seatUse).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
